import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Loading',
    component: () => import(/* webpackChunkName: "about" */ '@/components/Loading.vue'),
    // component: () => import('../views/Loading.vue'),
  },
  {
    path: '/Details',
    name: 'Details',
    component: () => import(/* webpackChunkName: "about" */ '@/components/Details.vue'),
    // component: () => import('../views/Loading.vue'),
  },
]
const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
